//
//  GameManager.h
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"

@protocol GameManagerDelegate <NSObject>
@optional

- (void)onSearchAllGameFinish:(BOOL)isSuccess
                        Games:(NSMutableArray*)gameInfoArray;

- (void)onCheckGameChargeInfoFinish:(BOOL)isSuccess
                        gameInfo:(NSMutableArray*)gameChargeInfoArray;

- (void)onChargeGameFinish:(BOOL)isSuccess
                        tn:(NSString*)tn;

@end

@interface GameManager : NSObject <ServerCommunicationDelegate>

@property (nonatomic, assign) id<GameManagerDelegate> delegate;

+ (GameManager*)shareManager;

- (void)searchAllGame;
- (void)chargeGameWithId:(NSString*)gameId gameUser:(NSString*)gameUser cardNum:(NSString*)cardNum;
- (void)checkGameChargeInfo:(NSString *)gameId gameName:gameName;

@end
